<?php
require_once("Smarty/Smarty.class.php");

class Zen_Tpl_Smarty extends Zen_Dependency
{
    protected $_Zen_Tpl_Smarty = array(
        'allow_php_tag' => '',
        'allow_php_templates' => '',
        'compile_dir' => '',
        'config_dir' => '',
        'cache_dir' => '',
        'dependency' => 'Smarty',
    );

    protected function _postConstruct()
    {
        $this->_dependency->template_dir = Zen::factory("Zen_Module")->getModule()."/Views/";
        $this->_dependency->compile_dir  =  $this->_config['compile_dir'];
        $this->_dependency->config_dir   =  $this->_config['config_dir'];
        $this->_dependency->cache_dir    =  $this->_config['cache_dir'];
        $this->_dependency->allow_php_tag = $this->_config['allow_php_tag'];
        $this->_dependency->allow_php_templates = $this->_config['allow_php_templates'];
    }
}
